// *Author：jxx
// *Contact：283591387@qq.com
// *代码由框架生成,任何更改都可能导致被代码生成器覆盖
export default function(){
    const table = {
        key: 'Id',
        footer: "Foots",
        cnName: '打卡维护',
        name: 'Attendance',
        url: "/Attendance/",
        sortName: "Id"
    };
    const tableName = table.name;
    const tableCNName = table.cnName;
    const newTabEdit = false;
    const key = table.key;
    const editFormFields = {"PatrolName":"","WardAreaId":"","WardId":"","BedId":"","PatrolTime":""};
    const editFormOptions = [[{"title":"巡查人姓名","required":true,"field":"PatrolName","type":"text"}],
                              [{"dataKey":"病区编号","data":[],"title":"病区Id","required":true,"field":"WardAreaId","type":"select"}],
                              [{"dataKey":"房间号","data":[],"title":"病房Id","required":true,"field":"WardId","type":"select"}],
                              [{"dataKey":"床位编号","data":[],"title":"床位Id","required":true,"field":"BedId","type":"select"}],
                              [{"title":"巡查日期","required":true,"field":"PatrolTime","type":"date"}]];
    const searchFormFields = {"PatrolName":""};
    const searchFormOptions = [[{"title":"巡查人姓名","field":"PatrolName","type":"like"}]];
    const columns = [{field:'Id',title:'Id',type:'int',width:110,readonly:true,require:true,align:'left'},
                       {field:'PatrolName',title:'巡查人姓名',type:'string',width:110,require:true,align:'left'},
                       {field:'WardAreaId',title:'病区Id',type:'int',bind:{ key:'病区编号',data:[]},width:110,require:true,align:'left'},
                       {field:'WardId',title:'病房Id',type:'int',bind:{ key:'房间号',data:[]},width:110,require:true,align:'left'},
                       {field:'BedId',title:'床位Id',type:'int',bind:{ key:'床位编号',data:[]},width:110,require:true,align:'left'},
                       {field:'PatrolTime',title:'巡查日期',type:'datetime',width:150,require:true,align:'left'}];
    const detail ={columns:[]};
    const details = [];

    return {
        table,
        key,
        tableName,
        tableCNName,
        newTabEdit,
        editFormFields,
        editFormOptions,
        searchFormFields,
        searchFormOptions,
        columns,
        detail,
        details
    };
}